//
//  MonitorInfo.m
//  LiveGather
//
//  Created by macintosh on 16/9/12.
//  Copyright © 2016年 macintosh. All rights reserved.
//

#import "MonitorInfo.h"

@implementation MonitorInfo

+ (instancetype)monitorInfo
{
    MonitorInfo *monitorInfo = [MonitorInfo new];
    monitorInfo.fps = @"--";
    monitorInfo.vRate = @"---K";
    monitorInfo.aRate = @"---K";
    return monitorInfo;
}

+ (instancetype)monitorInfoWithVRate:(int)vRate aRate:(int)aRate fps:(NSInteger)fps
{
    MonitorInfo *monitorInfo = [MonitorInfo new];
    [monitorInfo setMonitorInfoWithVRate:vRate aRate:aRate fps:fps];
    return monitorInfo;
}

- (void)setMonitorInfoWithVRate:(int)vRate aRate:(int)aRate fps:(NSInteger)fps
{
    self.vRate = [NSString stringWithFormat:@"%dK", vRate];
    self.aRate = [NSString stringWithFormat:@"%dK", aRate];
    self.fps = [NSString stringWithFormat:@"%ld", fps];
}

@end
